package com.wn.entity;

import com.wn.validation_group.NcrAddGroup;
import lombok.Data;

import javax.validation.constraints.Min;
import java.util.List;

/**
 * @program: pms
 * @ClassName Project
 * @description:项目实体类
 * @author: LRW
 * @create: 2022-10-18 20:46
 * @Version 1.0
 **/
@Data
public class Project {
    @Min(value = 1,groups = NcrAddGroup.class)
    private Integer id;
    private String no;
    private String name;
    private String time;
    private Hr principal; //员工表一对一
    private String description;
    private String status;

    private List<Procedure> procedures; //流程一对多
    private List<Document> documents; //项目文档一对多
    private List<WorkOrder> workOrders;  //工单一对多
}
